package com.service.task.domain;


public class Task 
{
	private int id;
	private int userid;
	private int countryid;
	private int taskTypeid;
	
	private long period;
	private long delay;
	
	private String time;
	
	private String name;
	private String summary;
	private String xmlPath;
	private String xml;
	private String status;
	
    private String createdTime;
    private String modifiedTime;

	public Task()
	{
		super();
	}
	
	public int getID() 
	{
		return id;
	}
	
	public void setID(int id) 
	{
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) 
	{
		this.name = name;
	}
	
	public int getTaskTypeid() 
	{
		return taskTypeid;
	}
	
	public void setTaskTypeid(int taskTypeid) 
	{
		this.taskTypeid = taskTypeid;
	}
	
	public long getPeriod() 
	{
		return period;
	}
	
	public void setPeriod(long period) 
	{
		this.period = period;
	}
	
	public int getCountryid() 
	{
		return countryid;
	}
	
	public void setCountryid(int countryid) 
	{
		this.countryid = countryid;
	}

	public long getDelay() 
	{
		return delay;
	}
	
	public void setDelay(long delay) 
	{
		this.delay = delay;
	}
	
	public int getUserid() 
	{
		return userid;
	}
	
	public void setUserid(int userid)
	{
		this.userid = userid;
	}

	public String getTime() 
	{
		return time;
	}
	
	public void setTime(String time)
	{
		this.time = time;
	}

	public String getXmlPath() 
	{
		return xmlPath;
	}
	
	public void setXmlPath(String xmlPath) 
	{
		this.xmlPath = xmlPath;
	}

	public String getSummary() {
		return summary;
	}
	
	public void setSummary(String summary) 
	{
		this.summary = summary;
	}

	public String getStatus() 
	{
		return status;
	}
	
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getXml() 
	{
		return xml;
	}
	
	public void setXml(String xml) 
	{
		this.xml = xml;
	}

	public String getCreatedTime()
	{
		return createdTime;
	}
	
	public void setCreatedTime(String createdTime)
	{
		this.createdTime = createdTime;
	}

	public String getModifiedTime()
	{
		return modifiedTime;
	}
	
	public void setModifiedTime(String modifiedTime)
	{
		this.modifiedTime = modifiedTime;
	}

	public int hashCode() 
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	
	public boolean equals(Object obj) 
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Task other = (Task) obj;
		if (id != other.id)
			return false;
		
		return true;
	}

	public String toString()
	{
		return name;
	}
}
